package com.leyou.user.service.redis;

import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.serializer.StringRedisSerializer;

public class StringRedisTemplate  extends RedisTemplate<String,String> {


    public StringRedisTemplate() {
        StringRedisSerializer stringRedisSerializer = new StringRedisSerializer();
        setKeySerializer(stringRedisSerializer);
        setValueSerializer(stringRedisSerializer);
        setHashKeySerializer(stringRedisSerializer);
        setHashValueSerializer(stringRedisSerializer);
    }
}
